You are currently viewing Programming Basics #35 Programming Style

Programming Basics #35 Programming Style

  • Post author:
  • Post category:Videos

http://learn-share.net/programming-basics-course/
Programming Course. The Basics of Programming.
#35 Programming Style

Learn to code.

Programming style

The main point of style guide lines are.

Your code should be easily readable.
Should be consistent.
And you should know accept the best practices, meaning, playing along with every one else in the world is writing the same language. Because is going to make it easier to read example code, recognising where the code you looking at, is written well.

Let’s take a look in a few examples of style guide lines, for javascript and similarly many other languages, particularly C based ones.

Naming convections.

We already seen that the rules of javascript say, you must use letters, numbers, dollar sign, underscore, and you can’t start with a number.

But doesn’t mean something like this would be a good idea for a variable or functions name. This will be allowed, but is preferred clarity, we want clear ability, we want meaning.

http://learn-share.net/programming-basics-course/